
import { _decorator, Component, Label, WebView } from 'cc';
const { ccclass, property } = _decorator;
 
@ccclass('HtmlView')
export class HtmlView extends Component {
    @property({type:Label})
    lblTitle:Label = null;
    @property({type:WebView})
    webView:WebView = null;

    public init(flag:string) {
        this.lblTitle.string = flag;
        this.webView.url = 'https://www.cocos.com';
    }
}
